﻿using System;
using Teigha.Core;

namespace Teigha.TD
{
	public class TD_Db
	{
		public static OdResBuf oddbEntGet(OdDbObject pObj, string regapps)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbEntGet__SWIG_0(OdDbObject.getCPtr(pObj), regapps);
			OdResBuf result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResBuf oddbEntGet(OdDbObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbEntGet__SWIG_1(OdDbObject.getCPtr(pObj));
			OdResBuf result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResBuf oddbEntGet(OdDbObjectId id, string regapps)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbEntGet__SWIG_2(OdDbObjectId.getCPtr(id), regapps);
			OdResBuf result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResBuf oddbEntGet(OdDbObjectId id)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbEntGet__SWIG_3(OdDbObjectId.getCPtr(id));
			OdResBuf result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEntMod(OdDbObject pObj, OdResBuf pRb)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEntMod__SWIG_0(OdDbObject.getCPtr(pObj), OdResBuf.getCPtr(pRb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEntMod(OdDbObjectId id, OdResBuf pRb)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEntMod__SWIG_1(OdDbObjectId.getCPtr(id), OdResBuf.getCPtr(pRb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbEntNext(OdDbObjectId id, OdDbDatabase db)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbEntNext(OdDbObjectId.getCPtr(id), OdDbDatabase.getCPtr(db));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbEntLast(OdDbDatabase db)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbEntLast(OdDbDatabase.getCPtr(db));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEntMake(OdDbDatabase pDb, OdResBuf pRb, out OdDbObject pObj)
		{
			IntPtr zero = IntPtr.Zero;
			OdResult result;
			try
			{
				OdResult odResult = (OdResult)TD_DbPINVOKE.oddbEntMake(OdDbDatabase.getCPtr(pDb), OdResBuf.getCPtr(pRb), out zero);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				result = odResult;
			}
			finally
			{
				pObj = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(zero, true);
			}
			return result;
		}

		public static OdResult oddbEntMakeX(OdDbDatabase pDb, OdResBuf pRb, out OdDbObject pObj)
		{
			IntPtr zero = IntPtr.Zero;
			OdResult result;
			try
			{
				OdResult odResult = (OdResult)TD_DbPINVOKE.oddbEntMakeX(OdDbDatabase.getCPtr(pDb), OdResBuf.getCPtr(pRb), out zero);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				result = odResult;
			}
			finally
			{
				pObj = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(zero, true);
			}
			return result;
		}

		public static OdRxSystemServices odSystemServices()
		{
			OdRxSystemServices result = new OdRxSystemServices(TD_DbPINVOKE.odSystemServices(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static void odInitialize(OdRxSystemServices pSystemServices)
		{
			TD_DbPINVOKE.odInitialize(OdRxSystemServices.getCPtr(pSystemServices));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odUninitialize()
		{
			TD_DbPINVOKE.odUninitialize();
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbGetPreviewBitmap(OdStreamBuf pStreamBuf, OdThumbnailImage pPreview)
		{
			TD_DbPINVOKE.odDbGetPreviewBitmap(OdStreamBuf.getCPtr(pStreamBuf), OdThumbnailImage.getCPtr(pPreview));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetDWGCODEPAGE(OdDbDatabase db, OdCodePageId val)
		{
			TD_DbPINVOKE.odDbSetDWGCODEPAGE(OdDbDatabase.getCPtr(db), (int)val);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetTDUCREATE(OdDbDatabase db, OdDbDate val)
		{
			TD_DbPINVOKE.odDbSetTDUCREATE(OdDbDatabase.getCPtr(db), OdDbDate.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetTDUUPDATE(OdDbDatabase db, OdDbDate val)
		{
			TD_DbPINVOKE.odDbSetTDUUPDATE(OdDbDatabase.getCPtr(db), OdDbDate.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetTDINDWG(OdDbDatabase db, OdDbDate val)
		{
			TD_DbPINVOKE.odDbSetTDINDWG(OdDbDatabase.getCPtr(db), OdDbDate.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetTDUSRTIMER(OdDbDatabase db, OdDbDate val)
		{
			TD_DbPINVOKE.odDbSetTDUSRTIMER(OdDbDatabase.getCPtr(db), OdDbDate.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetPSTYLEMODE(OdDbDatabase db, bool val)
		{
			TD_DbPINVOKE.odDbSetPSTYLEMODE(OdDbDatabase.getCPtr(db), val);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetUCSORG(OdDbDatabase db, OdGePoint3d val)
		{
			TD_DbPINVOKE.odDbSetUCSORG(OdDbDatabase.getCPtr(db), OdGePoint3d.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetUCSXDIR(OdDbDatabase db, OdGeVector3d val)
		{
			TD_DbPINVOKE.odDbSetUCSXDIR(OdDbDatabase.getCPtr(db), OdGeVector3d.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetUCSYDIR(OdDbDatabase db, OdGeVector3d val)
		{
			TD_DbPINVOKE.odDbSetUCSYDIR(OdDbDatabase.getCPtr(db), OdGeVector3d.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetPUCSORG(OdDbDatabase db, OdGePoint3d val)
		{
			TD_DbPINVOKE.odDbSetPUCSORG(OdDbDatabase.getCPtr(db), OdGePoint3d.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetPUCSXDIR(OdDbDatabase db, OdGeVector3d val)
		{
			TD_DbPINVOKE.odDbSetPUCSXDIR(OdDbDatabase.getCPtr(db), OdGeVector3d.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSetPUCSYDIR(OdDbDatabase db, OdGeVector3d val)
		{
			TD_DbPINVOKE.odDbSetPUCSYDIR(OdDbDatabase.getCPtr(db), OdGeVector3d.getCPtr(val));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSaveLineTypeFile(OdDbDatabase Db, OdStreamBuf filename, TextFileEncoding encode)
		{
			TD_DbPINVOKE.odDbSaveLineTypeFile__SWIG_0(OdDbDatabase.getCPtr(Db), OdStreamBuf.getCPtr(filename), (int)encode);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSaveLineTypeFile(OdDbDatabase Db, OdStreamBuf filename)
		{
			TD_DbPINVOKE.odDbSaveLineTypeFile__SWIG_1(OdDbDatabase.getCPtr(Db), OdStreamBuf.getCPtr(filename));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbLoadMlineStyleFile(OdDbDatabase db, string patternName, OdStreamBuf filename, DuplicateLinetypeLoading dlt)
		{
			TD_DbPINVOKE.odDbLoadMlineStyleFile__SWIG_0(OdDbDatabase.getCPtr(db), patternName, OdStreamBuf.getCPtr(filename), (int)dlt);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbLoadMlineStyleFile(OdDbDatabase db, string patternName, OdStreamBuf filename)
		{
			TD_DbPINVOKE.odDbLoadMlineStyleFile__SWIG_1(OdDbDatabase.getCPtr(db), patternName, OdStreamBuf.getCPtr(filename));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbSaveMlineStyleFile(OdDbDatabase Db, OdStreamBuf filename)
		{
			TD_DbPINVOKE.odDbSaveMlineStyleFile(OdDbDatabase.getCPtr(Db), OdStreamBuf.getCPtr(filename));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static string DwgVersionToStr(DwgVersion ver)
		{
			string result = TD_DbPINVOKE.DwgVersionToStr((int)ver);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static DwgVersion DwgVersionFromStr(string str)
		{
			DwgVersion result = (DwgVersion)TD_DbPINVOKE.DwgVersionFromStr(str);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string odDbGetObjectName(OdDbObject pObj)
		{
			string result = TD_DbPINVOKE.odDbGetObjectName(OdDbObject.getCPtr(pObj));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string odDbGetObjectIdName(OdDbObjectId id)
		{
			string result = TD_DbPINVOKE.odDbGetObjectIdName(OdDbObjectId.getCPtr(id));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string odDbGetHandleName(OdDbHandle handle)
		{
			string result = TD_DbPINVOKE.odDbGetHandleName(OdDbHandle.getCPtr(handle));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string odDbGenerateName(OdDbObjectId id, OdDbHostAppServices pHostApp)
		{
			string result = TD_DbPINVOKE.odDbGenerateName__SWIG_0(OdDbObjectId.getCPtr(id), OdDbHostAppServices.getCPtr(pHostApp));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string odDbGenerateName(OdDbObjectId id)
		{
			string result = TD_DbPINVOKE.odDbGenerateName__SWIG_1(OdDbObjectId.getCPtr(id));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string odDbGenerateName(uint i, OdDbHostAppServices pHostApp)
		{
			string result = TD_DbPINVOKE.odDbGenerateName__SWIG_2(i, OdDbHostAppServices.getCPtr(pHostApp));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string odDbGenerateName(uint i)
		{
			string result = TD_DbPINVOKE.odDbGenerateName__SWIG_3(i);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool odDbAuditColorIndex(out short colorIndex, OdDbAuditInfo pAuditInfo, OdDbHostAppServices pHostApp)
		{
			bool result = TD_DbPINVOKE.odDbAuditColorIndex__SWIG_0(out colorIndex, OdDbAuditInfo.getCPtr(pAuditInfo), OdDbHostAppServices.getCPtr(pHostApp));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool odDbAuditColorIndex(out short colorIndex, OdDbAuditInfo pAuditInfo)
		{
			bool result = TD_DbPINVOKE.odDbAuditColorIndex__SWIG_1(out colorIndex, OdDbAuditInfo.getCPtr(pAuditInfo));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool odDbAuditColor(OdCmColor color, OdDbAuditInfo pAuditInfo, OdDbHostAppServices pHostApp)
		{
			bool result = TD_DbPINVOKE.odDbAuditColor__SWIG_0(OdCmColor.getCPtr(color), OdDbAuditInfo.getCPtr(pAuditInfo), OdDbHostAppServices.getCPtr(pHostApp));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool odDbAuditColor(OdCmColor color, OdDbAuditInfo pAuditInfo)
		{
			bool result = TD_DbPINVOKE.odDbAuditColor__SWIG_1(OdCmColor.getCPtr(color), OdDbAuditInfo.getCPtr(pAuditInfo));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdFdFieldEngine oddbGetFieldEngine()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetFieldEngine();
			OdFdFieldEngine result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdFdFieldEngine)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdFdFieldEngine)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdFdFieldEngine)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEvaluateFields(OdDbDatabase pDb, int nContext, OdDbObjectIdArray objIds, OdDbObjectIdArray pFieldsToEvaluate, string pszEvaluatorId, OdFd.EvalFields nEvalFlag, out int pNumFound, out int pNumEvaluated)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEvaluateFields__SWIG_0(OdDbDatabase.getCPtr(pDb), nContext, OdDbObjectIdArray.getCPtr(objIds), OdDbObjectIdArray.getCPtr(pFieldsToEvaluate), pszEvaluatorId, (int)nEvalFlag, out pNumFound, out pNumEvaluated);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEvaluateFields(OdDbDatabase pDb, int nContext, OdDbObjectIdArray objIds, OdDbObjectIdArray pFieldsToEvaluate, string pszEvaluatorId, OdFd.EvalFields nEvalFlag, out int pNumFound)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEvaluateFields__SWIG_1(OdDbDatabase.getCPtr(pDb), nContext, OdDbObjectIdArray.getCPtr(objIds), OdDbObjectIdArray.getCPtr(pFieldsToEvaluate), pszEvaluatorId, (int)nEvalFlag, out pNumFound);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEvaluateFields(OdDbDatabase pDb, int nContext, OdDbObjectIdArray objIds, OdDbObjectIdArray pFieldsToEvaluate, string pszEvaluatorId, OdFd.EvalFields nEvalFlag)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEvaluateFields__SWIG_2(OdDbDatabase.getCPtr(pDb), nContext, OdDbObjectIdArray.getCPtr(objIds), OdDbObjectIdArray.getCPtr(pFieldsToEvaluate), pszEvaluatorId, (int)nEvalFlag);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEvaluateFields(OdDbDatabase pDb, int nContext, OdDbObjectIdArray objIds, OdDbObjectIdArray pFieldsToEvaluate, string pszEvaluatorId)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEvaluateFields__SWIG_3(OdDbDatabase.getCPtr(pDb), nContext, OdDbObjectIdArray.getCPtr(objIds), OdDbObjectIdArray.getCPtr(pFieldsToEvaluate), pszEvaluatorId);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEvaluateFields(OdDbDatabase pDb, int nContext, OdDbObjectIdArray objIds, OdDbObjectIdArray pFieldsToEvaluate)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEvaluateFields__SWIG_4(OdDbDatabase.getCPtr(pDb), nContext, OdDbObjectIdArray.getCPtr(objIds), OdDbObjectIdArray.getCPtr(pFieldsToEvaluate));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEvaluateFields(OdDbDatabase pDb, int nContext, OdDbObjectIdArray objIds)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEvaluateFields__SWIG_5(OdDbDatabase.getCPtr(pDb), nContext, OdDbObjectIdArray.getCPtr(objIds));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdResult oddbEvaluateFields(OdDbDatabase pDb, int nContext)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.oddbEvaluateFields__SWIG_6(OdDbDatabase.getCPtr(pDb), nContext);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static EdgeArray oddbCreateEdgesFromEntity(OdDbEntity pEnt, OdGePlane hatchPlane)
		{
			EdgeArray result = new EdgeArray(TD_DbPINVOKE.oddbCreateEdgesFromEntity(OdDbEntity.getCPtr(pEnt), OdGePlane.getCPtr(hatchPlane)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static void pixelToModel(OdGeMatrix3d xfm, OdGePoint2d pixelPoint, OdGePoint3d modelPoint)
		{
			TD_DbPINVOKE.pixelToModel(OdGeMatrix3d.getCPtr(xfm), OdGePoint2d.getCPtr(pixelPoint), OdGePoint3d.getCPtr(modelPoint));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void modelToPixel(OdGeMatrix3d xfm, OdGePoint3d modelPoint, OdGePoint2d pixelPoint)
		{
			TD_DbPINVOKE.modelToPixel__SWIG_0(OdGeMatrix3d.getCPtr(xfm), OdGePoint3d.getCPtr(modelPoint), OdGePoint2d.getCPtr(pixelPoint));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void modelToPixel(OdGeVector3d viewDir, OdGeMatrix3d xfm, OdGePlane plane, OdGePoint3d modelPoint, OdGePoint2d pixelPoint)
		{
			TD_DbPINVOKE.modelToPixel__SWIG_1(OdGeVector3d.getCPtr(viewDir), OdGeMatrix3d.getCPtr(xfm), OdGePlane.getCPtr(plane), OdGePoint3d.getCPtr(modelPoint), OdGePoint2d.getCPtr(pixelPoint));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void updateIndexes(OdDbDatabase pDb)
		{
			TD_DbPINVOKE.updateIndexes(OdDbDatabase.getCPtr(pDb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void addIndex(OdDbBlockTableRecord pBTR, OdDbIndex pIndex)
		{
			TD_DbPINVOKE.addIndex(OdDbBlockTableRecord.getCPtr(pBTR), OdDbIndex.getCPtr(pIndex));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void removeIndex(OdDbBlockTableRecord pBTR, OdRxClass key)
		{
			TD_DbPINVOKE.removeIndex(OdDbBlockTableRecord.getCPtr(pBTR), OdRxClass.getCPtr(key));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static OdDbIndex getIndex(OdDbBlockTableRecord pBTR, OdRxClass key, OpenMode readOrWrite)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr index__SWIG_ = TD_DbPINVOKE.getIndex__SWIG_0(OdDbBlockTableRecord.getCPtr(pBTR), OdRxClass.getCPtr(key), (int)readOrWrite);
			OdDbIndex result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true));
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, false);
			}
			else
			{
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbIndex getIndex(OdDbBlockTableRecord pBTR, OdRxClass key)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr index__SWIG_ = TD_DbPINVOKE.getIndex__SWIG_1(OdDbBlockTableRecord.getCPtr(pBTR), OdRxClass.getCPtr(key));
			OdDbIndex result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true));
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, false);
			}
			else
			{
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbIndex getIndex(OdDbBlockTableRecord pBTR, int btrIndex, OpenMode readOrWrite)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr index__SWIG_ = TD_DbPINVOKE.getIndex__SWIG_2(OdDbBlockTableRecord.getCPtr(pBTR), btrIndex, (int)readOrWrite);
			OdDbIndex result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true));
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, false);
			}
			else
			{
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbIndex getIndex(OdDbBlockTableRecord pBTR, int btrIndex)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr index__SWIG_ = TD_DbPINVOKE.getIndex__SWIG_3(OdDbBlockTableRecord.getCPtr(pBTR), btrIndex);
			OdDbIndex result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true));
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, false);
			}
			else
			{
				result = (OdDbIndex)Teigha.Core.Helpers.odrxCreateObjectInternal(index__SWIG_, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int numIndexes(OdDbBlockTableRecord pBTR)
		{
			int result = TD_DbPINVOKE.numIndexes(OdDbBlockTableRecord.getCPtr(pBTR));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static void addFilter(OdDbBlockReference pBlkRef, OdDbFilter pFilter)
		{
			TD_DbPINVOKE.addFilter(OdDbBlockReference.getCPtr(pBlkRef), OdDbFilter.getCPtr(pFilter));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void removeFilter(OdDbBlockReference pBlkRef, OdRxClass key)
		{
			TD_DbPINVOKE.removeFilter(OdDbBlockReference.getCPtr(pBlkRef), OdRxClass.getCPtr(key));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static OdDbFilter getFilter(OdDbBlockReference pBlkRef, OdRxClass key, OpenMode readOrWrite)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr filter__SWIG_ = TD_DbPINVOKE.getFilter__SWIG_0(OdDbBlockReference.getCPtr(pBlkRef), OdRxClass.getCPtr(key), (int)readOrWrite);
			OdDbFilter result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbFilter)Teigha.Core.Helpers.odrxCreateObjectInternal(filter__SWIG_, true));
				result = (OdDbFilter)Teigha.Core.Helpers.odrxCreateObjectInternal(filter__SWIG_, false);
			}
			else
			{
				result = (OdDbFilter)Teigha.Core.Helpers.odrxCreateObjectInternal(filter__SWIG_, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbFilter getFilter(OdDbBlockReference pBlkRef, int btrIndex, OpenMode readOrWrite)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr filter__SWIG_ = TD_DbPINVOKE.getFilter__SWIG_1(OdDbBlockReference.getCPtr(pBlkRef), btrIndex, (int)readOrWrite);
			OdDbFilter result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbFilter)Teigha.Core.Helpers.odrxCreateObjectInternal(filter__SWIG_, true));
				result = (OdDbFilter)Teigha.Core.Helpers.odrxCreateObjectInternal(filter__SWIG_, false);
			}
			else
			{
				result = (OdDbFilter)Teigha.Core.Helpers.odrxCreateObjectInternal(filter__SWIG_, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int numFilters(OdDbBlockReference pBlkRef)
		{
			int result = TD_DbPINVOKE.numFilters(OdDbBlockReference.getCPtr(pBlkRef));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool odGetSatFromProxy(OdDbProxyEntity adPart, string sat)
		{
			bool result = TD_DbPINVOKE.odGetSatFromProxy__SWIG_0(OdDbProxyEntity.getCPtr(adPart), sat);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool odGetSatFromProxy(OdDbProxyEntity adPart, out OdModelerGeometry pModelerGeometry)
		{
			IntPtr zero = IntPtr.Zero;
			bool result;
			try
			{
				bool flag = TD_DbPINVOKE.odGetSatFromProxy__SWIG_1(OdDbProxyEntity.getCPtr(adPart), out zero);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				result = flag;
			}
			finally
			{
				pModelerGeometry = (OdModelerGeometry)Teigha.Core.Helpers.odrxCreateObjectInternal(zero, true);
			}
			return result;
		}

		public static OdDbProxyEntity odEntityToProxy(OdDbEntity pEnt, DwgVersion dwgVer, MaintReleaseVer nMaintVer)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.odEntityToProxy__SWIG_0(OdDbEntity.getCPtr(pEnt), (int)dwgVer, (int)nMaintVer);
			OdDbProxyEntity result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbProxyEntity odEntityToProxy(OdDbEntity pEnt, DwgVersion dwgVer)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.odEntityToProxy__SWIG_1(OdDbEntity.getCPtr(pEnt), (int)dwgVer);
			OdDbProxyEntity result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbProxyEntity odEntityToProxy(OdDbEntity pEnt)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.odEntityToProxy__SWIG_2(OdDbEntity.getCPtr(pEnt));
			OdDbProxyEntity result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbProxyEntity)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbProxyObject odObjectToProxy(OdDbObject pObj, DwgVersion dwgVer, MaintReleaseVer nMaintVer)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.odObjectToProxy__SWIG_0(OdDbObject.getCPtr(pObj), (int)dwgVer, (int)nMaintVer);
			OdDbProxyObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbProxyObject odObjectToProxy(OdDbObject pObj, DwgVersion dwgVer)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.odObjectToProxy__SWIG_1(OdDbObject.getCPtr(pObj), (int)dwgVer);
			OdDbProxyObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbProxyObject odObjectToProxy(OdDbObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.odObjectToProxy__SWIG_2(OdDbObject.getCPtr(pObj));
			OdDbProxyObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbProxyObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static void giFromDbTextStyle(OdDbTextStyleTableRecord pTStyle, OdGiTextStyle giStyle)
		{
			TD_DbPINVOKE.giFromDbTextStyle__SWIG_0(OdDbTextStyleTableRecord.getCPtr(pTStyle), OdGiTextStyle.getCPtr(giStyle));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void giFromDbTextStyle(OdDbObjectId styleId, OdGiTextStyle giStyle)
		{
			TD_DbPINVOKE.giFromDbTextStyle__SWIG_1(OdDbObjectId.getCPtr(styleId), OdGiTextStyle.getCPtr(giStyle));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static int dimfit(int dimatfit, int dimtmove)
		{
			int result = TD_DbPINVOKE.dimfit(dimatfit, dimtmove);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int dimunit(int dimlunit, int dimfrac)
		{
			int result = TD_DbPINVOKE.dimunit(dimlunit, dimfrac);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int dimatfit(int dimfit)
		{
			int result = TD_DbPINVOKE.dimatfit(dimfit);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int dimtmove(int dimfit)
		{
			int result = TD_DbPINVOKE.dimtmove(dimfit);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int dimlunit(int dimunit)
		{
			int result = TD_DbPINVOKE.dimlunit(dimunit);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int dimfrac(int dimunit)
		{
			int result = TD_DbPINVOKE.dimfrac(dimunit);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static string arrowName(OdDbObjectId blockId)
		{
			string result = TD_DbPINVOKE.arrowName(OdDbObjectId.getCPtr(blockId));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool isBuiltInArrow(string arrowheadName)
		{
			bool result = TD_DbPINVOKE.isBuiltInArrow(arrowheadName);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool isZeroLengthArrow(string arrowheadName)
		{
			bool result = TD_DbPINVOKE.isZeroLengthArrow(arrowheadName);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId findArrowId(string arrowheadName, OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.findArrowId(arrowheadName, OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId getArrowId(string arrowheadName, OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr arrowId = TD_DbPINVOKE.getArrowId(arrowheadName, OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(arrowId, true));
				result = new OdDbObjectId(arrowId, false);
			}
			else
			{
				result = new OdDbObjectId(arrowId, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static SWIGTYPE_p_wchar_t kszVSShadesOfGray
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSShadesOfGray_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static SWIGTYPE_p_wchar_t kszVSSketchy
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSSketchy_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static SWIGTYPE_p_wchar_t kszVSXRay
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSXRay_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static SWIGTYPE_p_wchar_t kszVSShadedWithEdges
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSShadedWithEdges_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static SWIGTYPE_p_wchar_t kszVSShaded
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSShaded_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static SWIGTYPE_p_wchar_t kszVSJitterOff
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSJitterOff_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static SWIGTYPE_p_wchar_t kszVSOverhangOff
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSOverhangOff_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static SWIGTYPE_p_wchar_t kszVSEdgeColorOff
		{
			get
			{
				IntPtr intPtr = TD_DbPINVOKE.kszVSEdgeColorOff_get();
				SWIGTYPE_p_wchar_t result = (intPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(intPtr, false);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static OdDbLibraryInfo oddbGetLibraryInfo()
		{
			IntPtr intPtr = TD_DbPINVOKE.oddbGetLibraryInfo();
			OdDbLibraryInfo result = (intPtr == IntPtr.Zero) ? null : new OdDbLibraryInfo(intPtr, false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDatabaseSummaryInfo oddbGetSummaryInfo(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetSummaryInfo(OdDbDatabase.getCPtr(pDb));
			OdDbDatabaseSummaryInfo result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabaseSummaryInfo)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabaseSummaryInfo)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabaseSummaryInfo)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static void oddbPutSummaryInfo(OdDbDatabaseSummaryInfo pInfo)
		{
			TD_DbPINVOKE.oddbPutSummaryInfo(OdDbDatabaseSummaryInfo.getCPtr(pInfo));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static OdApLongTransactionManager odapLongTransactionManager()
		{
			OdApLongTransactionManager result = (OdApLongTransactionManager)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.odapLongTransactionManager(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static int kItemVersionNumber
		{
			get
			{
				int result = TD_DbPINVOKE.kItemVersionNumber_get();
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static void oddbConvertRgbToHsl(OdGeVector3d rgb, OdGeVector3d hsl)
		{
			TD_DbPINVOKE.oddbConvertRgbToHsl(OdGeVector3d.getCPtr(rgb), OdGeVector3d.getCPtr(hsl));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void oddbConvertHslToRgb(OdGeVector3d hsl, OdGeVector3d rgb)
		{
			TD_DbPINVOKE.oddbConvertHslToRgb(OdGeVector3d.getCPtr(hsl), OdGeVector3d.getCPtr(rgb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void oddbUnderlayHostGetAdjustedColor(OdGeVector3d rgbResult, OdGeVector3d rgbInputColor, OdGeVector3d rgbCurrentBackgroundColor, OdGeVector3d hslFadedContrastColor, OdDbUnderlayDrawContext drawContext)
		{
			TD_DbPINVOKE.oddbUnderlayHostGetAdjustedColor(OdGeVector3d.getCPtr(rgbResult), OdGeVector3d.getCPtr(rgbInputColor), OdGeVector3d.getCPtr(rgbCurrentBackgroundColor), OdGeVector3d.getCPtr(hslFadedContrastColor), OdDbUnderlayDrawContext.getCPtr(drawContext));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void odDbPageObjects(OdDbDatabase pDb)
		{
			TD_DbPINVOKE.odDbPageObjects(OdDbDatabase.getCPtr(pDb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static OdGsLayoutHelper setupActiveLayoutViews(OdGsDevice pDevice, OdGiContextForDbDatabase pGiCtx)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.setupActiveLayoutViews(OdGsDevice.getCPtr(pDevice), OdGiContextForDbDatabase.getCPtr(pGiCtx));
			OdGsLayoutHelper result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdGsLayoutHelper setupLayoutViews(OdDbObjectId layoutId, OdGsDevice pDevice, OdGiContextForDbDatabase pGiCtx)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.setupLayoutViews(OdDbObjectId.getCPtr(layoutId), OdGsDevice.getCPtr(pDevice), OdGiContextForDbDatabase.getCPtr(pGiCtx));
			OdGsLayoutHelper result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static void setupPalette(OdGsDevice device, OdGiContextForDbDatabase giContext, OdDbStub layoutId, uint palBackground)
		{
			TD_DbPINVOKE.setupPalette__SWIG_0(OdGsDevice.getCPtr(device), OdGiContextForDbDatabase.getCPtr(giContext), OdDbStub.getCPtr(layoutId), palBackground);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void setupPalette(OdGsDevice device, OdGiContextForDbDatabase giContext, OdDbStub layoutId)
		{
			TD_DbPINVOKE.setupPalette__SWIG_1(OdGsDevice.getCPtr(device), OdGiContextForDbDatabase.getCPtr(giContext), OdDbStub.getCPtr(layoutId));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static void setupPalette(OdGsDevice device, OdGiContextForDbDatabase giContext)
		{
			TD_DbPINVOKE.setupPalette__SWIG_2(OdGsDevice.getCPtr(device), OdGiContextForDbDatabase.getCPtr(giContext));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static OdRxEvent odrxEvent()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.odrxEvent();
			OdRxEvent result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdRxEvent)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdRxEvent)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdRxEvent)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdRxIterator oddbGetLights(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetLights(OdDbDatabase.getCPtr(pDb));
			OdRxIterator result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdRxIterator oddbGetMaterials(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetMaterials__SWIG_0(OdDbDatabase.getCPtr(pDb));
			OdRxIterator result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static void oddbGetMaterialIds(OdDbDatabase pDb, OdDbObjectIdArray ids)
		{
			TD_DbPINVOKE.oddbGetMaterialIds(OdDbDatabase.getCPtr(pDb), OdDbObjectIdArray.getCPtr(ids));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public static OdRxIterator oddbGetMaterials(OdStreamBuf pStreamBuf)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetMaterials__SWIG_1(OdStreamBuf.getCPtr(pStreamBuf));
			OdRxIterator result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdRxIterator oddbGetScenes(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetScenes(OdDbDatabase.getCPtr(pDb));
			OdRxIterator result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdRxIterator)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderSettingsDictionaryId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderSettingsDictionaryId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderSettingsDictionaryId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderSettingsDictionaryId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderSettingsDictionary(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderSettingsDictionary__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderSettingsDictionary(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderSettingsDictionary__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderPlotSettingsDictionaryId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderPlotSettingsDictionaryId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderPlotSettingsDictionaryId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderPlotSettingsDictionaryId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderPlotSettingsDictionary(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderPlotSettingsDictionary__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderPlotSettingsDictionary(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderPlotSettingsDictionary__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderGlobalObjectId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderGlobalObjectId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderGlobalObjectId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderGlobalObjectId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderGlobal oddbGetRenderGlobalObject(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderGlobalObject__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbRenderGlobal result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderGlobal)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderGlobal)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderGlobal)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderGlobal oddbGetRenderGlobalObject(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderGlobalObject__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbRenderGlobal result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderGlobal)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderGlobal)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderGlobal)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderEnvironmentObjectId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderEnvironmentObjectId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderEnvironmentObjectId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderEnvironmentObjectId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderEnvironment oddbGetRenderEnvironmentObject(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderEnvironmentObject__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbRenderEnvironment result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderEnvironment)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderEnvironment)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderEnvironment)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderEnvironment oddbGetRenderEnvironmentObject(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderEnvironmentObject__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbRenderEnvironment result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderEnvironment)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderEnvironment)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderEnvironment)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetActiveRenderSettingsObjectId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetActiveRenderSettingsObjectId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetActiveRenderSettingsObjectId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetActiveRenderSettingsObjectId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderSettings oddbGetActiveRenderSettingsObject(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetActiveRenderSettingsObject__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbRenderSettings result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderSettings oddbGetActiveRenderSettingsObject(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetActiveRenderSettingsObject__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbRenderSettings result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderEntriesDictionaryId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderEntriesDictionaryId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderEntriesDictionaryId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderEntriesDictionaryId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderEntriesDictionary(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderEntriesDictionary__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderEntriesDictionary(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderEntriesDictionary__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderRapidRTSettingsDictionaryId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderRapidRTSettingsDictionaryId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetRenderRapidRTSettingsDictionaryId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetRenderRapidRTSettingsDictionaryId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderRapidRTSettingsDictionary(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderRapidRTSettingsDictionary__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbDictionary oddbGetRenderRapidRTSettingsDictionary(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetRenderRapidRTSettingsDictionary__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbDictionary result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDictionary)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetActiveRenderRapidRTSettingsObjectId(OdDbDatabase pDb, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetActiveRenderRapidRTSettingsObjectId__SWIG_0(OdDbDatabase.getCPtr(pDb), createIfNotFound);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbObjectId oddbGetActiveRenderRapidRTSettingsObjectId(OdDbDatabase pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.oddbGetActiveRenderRapidRTSettingsObjectId__SWIG_1(OdDbDatabase.getCPtr(pDb));
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderSettings oddbGetActiveRenderRapidRTSettingsObject(OdDbDatabase pDb, OpenMode mode, bool createIfNotFound)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetActiveRenderRapidRTSettingsObject__SWIG_0(OdDbDatabase.getCPtr(pDb), (int)mode, createIfNotFound);
			OdDbRenderSettings result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbRenderSettings oddbGetActiveRenderRapidRTSettingsObject(OdDbDatabase pDb, OpenMode mode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.oddbGetActiveRenderRapidRTSettingsObject__SWIG_1(OdDbDatabase.getCPtr(pDb), (int)mode);
			OdDbRenderSettings result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbRenderSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public const int SEEK_SET = 0;

		public const int SEEK_CUR = 1;

		public const int SEEK_END = 2;

		public const int SECURITYPARAMS_ENCRYPT_DATA = 1;

		public const int SECURITYPARAMS_ENCRYPT_PROPS = 2;

		public const int SECURITYPARAMS_SIGN_DATA = 16;

		public const int SECURITYPARAMS_ADD_TIMESTAMP = 32;

		public const int SECURITYPARAMS_ALGID_RC4 = 26625;

		public const int DBL_DIG = 15;

		public const int HATCH_PATTERN_NAME_LENGTH = 32;

		public const int OD_DBLEOD_H = 1;

		public const double ODDB_INFINITE_XCLIP_DEPTH = 1E+300;

		public const int MSTYLE_DXF_FILL_ON = 1;

		public const int MSTYLE_DXF_SHOW_MITERS = 2;

		public const int MSTYLE_DXF_START_SQUARE_CAP = 16;

		public const int MSTYLE_DXF_START_INNER_ARCS = 32;

		public const int MSTYLE_DXF_START_ROUND_CAP = 64;

		public const int MSTYLE_DXF_END_SQUARE_CAP = 256;

		public const int MSTYLE_DXF_END_INNER_ARCS = 512;

		public const int MSTYLE_DXF_END_ROUND_CAP = 1024;

		public const int MSTYLE_DXF_JUST_TOP = 4096;

		public const int MSTYLE_DXF_JUST_ZERO = 8192;

		public const int MSTYLE_DXF_JUST_BOT = 16384;

		public const int MAX_LEADER_NUMBER = 5000;

		public const int MAX_LEADERLINE_NUMBER = 5000;
	}
}
